package com.star.pojo;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * com.star.pojo
 *
 * @Description: 博客实体类
 * @Date: 2020-08-05 16:36
 * @Author: LENSTAR
 * @URL: http://123.57.161.114:9000/
 */

//博客类
@Data
@NoArgsConstructor
public class Blog {
    private Long id;
    private String title;//标题
    private String content;//内容
    private String firstPicture;//首图
    private String flag;//标记
    private String description;//博客描述
    private int views;//浏览次数
    private int commentCount;//评论数
    private boolean appreciation;//赞赏
    private boolean shareStatement;//转载
    private boolean commentary;//评论
    private boolean published;//发布
    private boolean recommend;//推荐
    private Date createTime;//创建时间
    private Date updateTime;//更新时间

    private Type type;
    private Tag tag;
    private User user;
    private Long typeId;
    private Long tagId;
    private Long userId;
    private List<Comment> comments = new ArrayList<>();//评论集合
}